home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
simple_tower_defense.swf
/
scripts
/
DefineButton2_54
/
BUTTONCONDACTION on(release).as
< prev
next >
Wrap
Text File
|
2010-05-15
|
2KB
|
61 lines
on(release){
if(_root.tp == 1)
{
_root.C = _root.C + 1;
ft.gotoAndStop(1);
duplicateMovieClip("t","t" + C,16384 + C);
_root.turretplace.start();
_root.tss = true;
_root["t" + C].number = _root.C;
_root.cash -= 20;
_root.ton = 0;
}
else
{
if(_root.tp == 2)
{
_root.C = _root.C + 1;
ft.gotoAndStop(1);
duplicateMovieClip("t2","t" + C,16384 + C);
_root.turretplace.start();
_root.tss = true;
_root["t" + C].number = _root.C;
_root.cash -= 50;
_root.ton = 0;
}
if(_root.tp == 3)
{
_root.C = _root.C + 1;
ft.gotoAndStop(1);
duplicateMovieClip("t3","t" + C,16384 + C);
_root.turretplace.start();
_root.tss = true;
_root["t" + C].number = _root.C;
_root.cash -= 100;
_root.ton = 0;
}
if(_root.tp == 4)
{
_root.C = _root.C + 1;
ft.gotoAndStop(1);
duplicateMovieClip("t4","t" + C,16384 + C);
_root.turretplace.start();
_root.tss = true;
_root["t" + C].number = _root.C;
_root.cash -= 100;
_root.ton = 0;
}
}
if(_root.tp == 5)
{
_root.C = _root.C + 1;
ft.gotoAndStop(1);
duplicateMovieClip("t5","t" + C,16384 + C);
_root.turretplace.start();
_root.tss = true;
_root["t" + C].number = _root.C;
_root.cash -= 150;
_root.ton = 0;
}
}